<table>
  <tr>
    <th>Value</th>
    <th>Time</th>
    <th>Id</th>
    <th>Key</th>
  </tr>

<% for power in @powers %>
  <tr>
    <td><%=h power.value %></td>
    <td><%=h power.time %></td>
    <td><%=h power.id %></td>
    <td><%=h power.key %></td>
    <td><%= link_to 'Show', power %></td>
    <td><%= link_to 'Edit', edit_power_path(power) %></td>
    <td><%= link_to 'Destroy', power, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>
<br />

<%= link_to 'New power', new_power_path %>
